#!/bin/bash
# OBS FOR CAMZAM (Mac) — starts OBS Studio with the camera allowed to its browser sources (CamZam's engine page).
# NOT YET TESTED ON A REAL MAC: to be checked before any Mac compatibility is announced.
# macOS will also ask, once, to let OBS use the camera (System Settings › Privacy & Security › Camera).
if pgrep -x OBS >/dev/null; then
  echo "OBS est déjà ouvert : quittez-le complètement (OBS › Quitter), puis relancez ce raccourci."
  exit 1
fi
open -n -a "OBS" --args --enable-media-stream
